//
//  CaseTextCell.m
//  KMedicine
//
//  Created by song on 16/7/7.
//  Copyright © 2016年 caomu. All rights reserved.
//

#import "CaseTextCell.h"

@interface CaseTextCell()

@property (nonatomic, strong) UITextView *titleField;

@end

@implementation CaseTextCell

- (instancetype)init{
    if (self = [super init]) {
        
        [self setupUI];

        
    }
    return self;
}


#pragma mark
#pragma mark 初始化控件
- (void)setupUI{
    
    UITextView *titleField = [[UITextView alloc] init];
    
    titleField.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:titleField];
    self.titleField = titleField;
    
    [self setLayout];
}

#pragma mark
#pragma mark 设置约束
- (void)setLayout{
    
    [self.textLabel makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.offset(15);
    }];
    
    [self.titleField makeConstraints:^(MASConstraintMaker *make) {
        make.top.offset(40);
        make.left.offset(10);
        make.right.offset(-10);
        make.bottom.offset(-5);
    }];
}



@end
